package com.chao.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chao.entity.Department;
import com.chao.entity.Major;
import com.chao.mapper.MajorMapper;
import com.chao.service.MajorService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorServiceImpl extends ServiceImpl<MajorMapper, Major> implements MajorService {

    @Override
    public Page<Major> selectAll(Page<Major> page) {
        return getBaseMapper().selectAll(page);
    }

    @Override
    public int addOfPrimary(Major major) {
        return getBaseMapper().addOfPrimary(major);
    }
}
